﻿using System;
using System.Collections.Generic;
using System.Text;

namespace StudentManagement.Model.Enums
{
    /// <summary>
    /// 性别
    /// </summary>
    public enum SexEmun
    {
        /// <summary>
        /// 女
        /// </summary>
        Female,

        /// <summary>
        /// 男
        /// </summary>
        Male,
    }

    public static class SexEmunText
    {

        /// <summary>
        /// 获取枚举的文本表示
        /// </summary>
        /// <returns></returns>
        public static string ToText(this SexEmun sexEmun)
        {
            switch (sexEmun)
            {
                case SexEmun.Female:
                    return "女";
                case SexEmun.Male:
                    return "男";
                default:
                    return string.Empty;
            }
        }

    }
}
